﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            SuperMan sm = new SuperMan();
            Bird b = new Bird();
            Plane p = new Plane();

            Test(sm);
            Test(b);
            Test1(sm);
            Test1(b);

            Test1(p);
            Test2(p);
        }

        static void Test(Animal a)
        {
            a.Eat();
        }

        static void Test1(IFlyable fly)
        {
            fly.TakeOff();
            fly.Fly();
            fly.Land();
        }

        static void Test2(Vehicle v)
        {
            v.CarrySomeThing();
        }
    }
}
